/*
Naijanimi Free SMS Application for Nokia mobiles.

"Naijanimi Free SMS Application" is protected by the copyright law
(c) 2011 Enrico Miglino / Tech Consulting (enrico.miglino@ovi.com)
Distributed under the LGPL 3.0 license.

This file is part of "Naijanimi Free SMS Application".

    "Naijanimi Free SMS Application" is free software: you can redistribute it
    and/or modify it under the terms of the Lesser GNU General Public License
    as published by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    "Naijanimi Free SMS Application" is distributed in the hope that it
    will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Lesser GNU General Public License for more details.

    You should have received a copy of the Lesser GNU General Public License
    along with "Naijanimi Free SMS Application".
    If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

Item {
    id: container   // Welcome container

    property alias itemwidth: welcomeman.width

    // splashscreen component.
    Image {
        id: welcomeman

        // Maintaining the PreseveAspectFit mode on the image when possible
        // we can work on adaptive resizing and moving parameters using only one
        // axes (the most convenient, depending by the case)
        fillMode: Image.PreserveAspectFit

        source: "images/splash_man.png"
    }

    Text {
        id: welcomemsg

        // The value of textHeight depends on some object values
        // It is used to manage the text object a useful size for
        // scaling and positioning.
        // textHeight = margin + character point height * number of lines + margin
        property int textHeight: 45
        x: 1
        y: 149
        width: 177
        // Welcome text message is anchored to the bottom of the image
        font.family: "Impact"
        horizontalAlignment: Text.AlignHCenter
        styleColor: "#66755a"
        style: Text.Sunken
        // Font size is expressed in pixels so the text size and position can be
        // calculated relative to the device screen size.
        font.pixelSize: 28
        text: "Naija Nimi SMS!"
        anchors.top: parent.top
        anchors.topMargin: 149
        smooth: true
        verticalAlignment: Text.AlignTop
        clip: false
        scale: 0.8
    }
}
